

// pub struct Request {
//     instruction: Instruction,
//     payload: Vec<String>,
//     password: String,
// }
// impl Frame for Request {
    
// }
// pub struct Response {
//     state: i8,
//     payload: Vec<String>,
// }

// impl Frame for Response {
// }

// trait Frame {
//     pub fn from_str(s: &str) -> Frame {
//         let s = String::from(s);
//     }
// }


pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const WELCOME_MESSAGE: &str = r#"Wecome to clipflow
========================================
author: {author}	version: {version}
----------------------------------------
password: {password}"#;

// Response related
pub const SUCCESS_PREFIX: &str = "1) ";
pub const ERROR_PREFIX: &str = "0) ";
pub const INVALID_PASSWORD_MESSAGE: &str = "Invalid password";
pub const OK_MESSAGE: &str = "ok";

// Server HTTP response
pub const SERVER_ONLINE_HTML: &str = r#"HTTP/1.1 200 OK \r\n\r\n
<p style="text-align: center; margin-top: 4rem;">
    YOU ARE USING BROWSER TO CONNECTING THE CLIPFLOW<br>
    <span style="color: green">CLIPFLOW SERVER IS ONLINE</span>
</p>"#;

// Client messages
pub const SYNC_MESSAGE: &str = "clipboard synced";
pub const SYNC_WITH_HASH: &str = "clipboard synced with ";
pub const SKIP_SYNC_MESSAGE: &str = "skip changed trigged by sync clipboard.";
pub const NO_CLIPS_MESSAGE: &str = "No clips to send";
